import Vue from 'vue'
import commons from "@/commons";

async function getAll() {
    const url = commons.community_server_url + "/topic/subject/getAll"
    await Vue.prototype.$axios({
        method: 'get',
        url: url,
        headers: {'Content-Type': 'application/json'},
    }).then((response) => {
        console.log(response)
        return response;
        //请求成功返回的数据
    }).catch((error) => {
        console.log(error);
    })
}

export default {
    getAll
}